package com.gitee.xmhzzz.component.mqtt.client.model;

import com.google.common.collect.Maps;
import lombok.Data;
import org.apache.commons.lang3.RandomStringUtils;

import java.util.Map;

/**
 * @ClassName Req
 * @Description
 * @Author wzq
 * @Date 2024/1/10 18:00
 * @Version 1.0
 */
@Data
public class Req {

    protected String messageId = RandomStringUtils.randomNumeric(12);

    protected final Long createdTime = System.currentTimeMillis();

    protected String topic;

    private Integer qos;

    protected Map<String, Object> headers = Maps.newHashMap();

    protected Map<String, Object> data = Maps.newHashMap();

}

